const fs = require('fs')

fs.stat('./', {  }, (error, data) => {
  if(error) {
    console.log('查看资源信息失败', error)
    return
  }
  console.log(data)
  // console.log(data.isFile())
  // console.log(data.isDirectory())
})